---
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
title: RadioButton
description: RadioButton API.
---

import CodeSnippetMD from '/src/components/CodeSnippetMD.astro';
import SlintProperty from '/src/components/SlintProperty.astro';

<CodeSnippetMD imagePath="/src/assets/generated/radiobutton.png" scale="3" imageWidth="300" imageHeight="200" imageAlt="" needsBackground="true">
```slint
import { RadioButton } from "@material";
export component Example inherits Window {
    width: 200px;
    height: 100px;
    background: transparent;
    RadioButton {
        checked: true;
    }
}
```
</CodeSnippetMD>

`RadioButton`s let people select one option from a set of options.

## Properties

### checked
<SlintProperty propName="checked" typeName="bool" propertyVisibility="in">
Whether the radiobutton is checked.
</SlintProperty>

### enabled
<SlintProperty propName="enabled" typeName="bool" defaultValue="true">
Whether the radiobutton is enabled and can be interacted with.
</SlintProperty>

## Callbacks

### clicked()
Invoked when the radiobutton is clicked.
